-- GENERATED SPELL FOR [Dreghood Slave] --


function spell0_17799(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_17799', 596, 1)
end

function Sorts_17799(pUnit, Event)
local choix_sorts_17799 = math.random(0, 0)
if choix_sorts_17799 == 0 then
pUnit:RegisterEvent('spell0_17799', 1, 1)
end
end

function mob17799_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17799', math.random(1500, 3000), 1)
end

function mob17799_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17799_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17799_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17799, 1, 'mob17799_Action')
RegisterUnitEvent(17799, 2, 'mob17799_Leave')
RegisterUnitEvent(17799, 3, 'mob17799_Kill')
RegisterUnitEvent(17799, 4, 'mob17799_Die')
